﻿using ConfExpert.Forms.Base;
using DevTeam;
using System;
namespace ConfExpert.Forms.Ithalat
{
    public partial class UnspedYurtdisi : XForm
    {
        public UnspedYurtdisi()
        {
            InitializeComponent();
        }

        private void UnspedYurtdisi_Load(object sender, EventArgs e)
        {
            gridView1.Init("GetUnspedYurtdisi");

            ds.nFirma.Merge(ExecuteDataTable("GetNebim", "Firma"));
            gridView1.Columns["nFirmaId"].ColumnEdit = GetNebimRI(ds.nFirma, "nFirmaID");
            gridView1.AddSummary();
            gridView1.BestFitColumns();

            btnKaydet.ItemClick += btnKaydet_ItemClick;
        }

        void btnKaydet_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            gridView1.EndEditing();
            gridView1.Update("", "UnspedYurtdisi");
            gridView1.BestFitColumns();
        }
    }
}
